package com.sys.web.formbean;

import java.io.UnsupportedEncodingException;

import javax.servlet.http.HttpServletRequest;

import com.sys.domain.User;

public class RegisterForm {
	public User creatFormBean(HttpServletRequest request) throws UnsupportedEncodingException {
		User user = new User();
		user.setUserId(request.getParameter("userId"));
		user.setUserPwd(request.getParameter("userPwd"));
		user.setUserName(new String(request.getParameter("userName").getBytes("ISO-8859-1"),"UTF-8"));
		user.seteMail(request.getParameter("userEmail"));
		return user;
	}
}
